﻿using System;
using SharpSqlAnalyzer.nodes;

namespace SharpSqlAnalyzer.stmt.snowflake
{
	// Token: 0x020000EF RID: 239
	public class TCreateNetworkPolicyStmt : TCustomSqlStatement
	{
		// Token: 0x06000817 RID: 2071 RVA: 0x003018B6 File Offset: 0x002FFAB6
		public void setNetworkPolicyName(TObjectName networkPolicyName)
		{
			this.networkPolicyName = networkPolicyName;
		}

		// Token: 0x06000818 RID: 2072 RVA: 0x003018BF File Offset: 0x002FFABF
		public TObjectName getNetworkPolicyName()
		{
			return this.networkPolicyName;
		}

		// Token: 0x06000819 RID: 2073 RVA: 0x003018C7 File Offset: 0x002FFAC7
		public TCreateNetworkPolicyStmt(EDbVendor dbvendor) : base(dbvendor)
		{
			this.sqlstatementtype = ESqlStatementType.sstCreateNetworkPolicy;
		}

		// Token: 0x0600081A RID: 2074 RVA: 0x003018DC File Offset: 0x002FFADC
		public override int doParseStatement(TCustomSqlStatement psql)
		{
			if (this.rootNode == null)
			{
				return -1;
			}
			base.doParseStatement(psql);
			TDummy tdummy = (TDummy)this.rootNode;
			this.networkPolicyName = (TObjectName)tdummy.node1;
			return 0;
		}

		// Token: 0x0600081B RID: 2075 RVA: 0x00301919 File Offset: 0x002FFB19
		public override void accept(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x0600081C RID: 2076 RVA: 0x00301929 File Offset: 0x002FFB29
		public override void acceptChildren(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x04001200 RID: 4608
		private TObjectName networkPolicyName;
	}
}
